package com.lsyw.intergrate.entity.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备信息表
 * </p>
 *
 * @author 刘磊
 * @since 2023-11-29
 */
@Data
@Accessors(chain = true)

public class DeviceMonitorVo implements Serializable {


    /**
     * 主键
     */
    @ApiModelProperty(value = "设备id")
    @ExcelIgnore
    private String id;

    /**
     * 设备名称
     */
    @ColumnWidth(18)
    @ExcelProperty(value = "设备名称", index = 1)
    @ApiModelProperty(value = "设备名称")
    private String name;

    /**
     * 设备类型 0摄像头 1GPS
     */
    @ApiModelProperty(value = "设备类型 0摄像头 1GPS ")
    @ExcelIgnore
    private String type;



    /**
     * 地块id
     */
    @ApiModelProperty(value = "地块id")
    @ExcelIgnore
    private String massifId;
    /**
     * 地块名称
     */
    @ColumnWidth(18)
    @ExcelProperty(value = "所属项目", index = 0)
    @ApiModelProperty(value = "地块名称")
    private String  massifName;

    /**
     * 监测时间
     */
    @ColumnWidth(18)
    @ExcelProperty(value = "监测日期", index = 2)
    @ApiModelProperty(value = "监测时间")
    private String monitorDate;

    /**
     * 监测时间
     */
    @ApiModelProperty(value = "监测数据")
    @ExcelIgnore
    List<Map<String, Object>> monitorData;
    /**
     * 监测时间
     */
    @ColumnWidth(100)
    @ExcelProperty(value = "监控因子", index = 3)
    @ApiModelProperty(value = "峰值数据")
    String monitorDataStr;

    /**
     * 监测时间
     */
    @ApiModelProperty(value = "设备状态（1：正常，2：故障）")
    @ExcelIgnore
    private Integer deviceStatus;
}
